package com.bigdata.service;

import com.bigdata.cache.GuavaCache;
import com.bigdata.pojo.JobBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ServiceFirst {

    @Autowired
    private GuavaCache guavaCache;

    public JobBean findHotPosition(int key) {
        JobBean jobBean = guavaCache.get(key);
        return jobBean;
    }
}
